package com.example.exception;

import java.text.DateFormat;
import java.util.Date;

public class ErrorResponse {
    private int status;
    private String message;
    private String path;
    private String date;

    public ErrorResponse() {
        String format = DateFormat.getDateTimeInstance(1, 2).format(new Date());
        this.date = format;
    }

    public ErrorResponse(String date) {
        this.date = date;
    }

    public String getDate() {
        //String format = DateFormat.getDateTimeInstance(1, 2).format(new Date());
        return date;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
